package com.annhoa;

import com.annhoa.infrastructure.listener.ApplicationStartedEventListener;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
// @EnableWebMvc //扫描
public class Application {

	public static void main(String[] args) {
		// 无侦听注册
		SpringApplication.run(Application.class, args);
		// 启动侦听注册
//		 SpringApplication springApplication = new SpringApplication(Application.class);
//		 springApplication.addListeners(new ApplicationStartedEventListener());
//		 springApplication.run(args);
	}
}